.class public Lweibo4android/Status;
.super Lweibo4android/WeiboResponse;
.source "Status.java"

# interfaces
.implements Ljava/io/Serializable;


# static fields
.field private static final serialVersionUID:J = 0x1650c3edbf9bb2a0L


# instance fields
.field private bmiddle_pic:Ljava/lang/String;

.field private createdAt:Ljava/util/Date;

.field private id:J

.field private inReplyToScreenName:Ljava/lang/String;

.field private inReplyToStatusId:J

.field private inReplyToUserId:J

.field private isFavorited:Z

.field private isTruncated:Z

.field private latitude:D

.field private longitude:D

.field private mid:Ljava/lang/String;

.field private original_pic:Ljava/lang/String;

.field private retweetDetails:Lweibo4android/RetweetDetails;

.field private retweeted_status:Lweibo4android/Status;

.field private source:Ljava/lang/String;

.field private text:Ljava/lang/String;

.field private thumbnail_pic:Ljava/lang/String;

.field private user:Lweibo4android/User;


# direct methods
.method public constructor <init>(Ljava/lang/String;)V
    .locals 3
    .parameter "str"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;,
            Lweibo4android/org/json/JSONException;
        }
    .end annotation

    .prologue
    const-wide/high16 v1, -0x4010

    .line 136
    invoke-direct {p0}, Lweibo4android/WeiboResponse;-><init>()V

    .line 57
    iput-wide v1, p0, Lweibo4android/Status;->latitude:D

    .line 58
    iput-wide v1, p0, Lweibo4android/Status;->longitude:D

    .line 290
    const/4 v1, 0x0

    iput-object v1, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 137
    new-instance v0, Lweibo4android/org/json/JSONObject;

    invoke-direct {v0, p1}, Lweibo4android/org/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 138
    .local v0, json:Lweibo4android/org/json/JSONObject;
    invoke-direct {p0, v0}, Lweibo4android/Status;->constructJson(Lweibo4android/org/json/JSONObject;)V

    .line 139
    return-void
.end method

.method constructor <init>(Lweibo4android/http/Response;)V
    .locals 3
    .parameter "res"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    const-wide/high16 v1, -0x4010

    .line 80
    invoke-direct {p0, p1}, Lweibo4android/WeiboResponse;-><init>(Lweibo4android/http/Response;)V

    .line 57
    iput-wide v1, p0, Lweibo4android/Status;->latitude:D

    .line 58
    iput-wide v1, p0, Lweibo4android/Status;->longitude:D

    .line 290
    const/4 v1, 0x0

    iput-object v1, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 81
    invoke-virtual {p1}, Lweibo4android/http/Response;->asJSONObject()Lweibo4android/org/json/JSONObject;

    move-result-object v0

    .line 82
    .local v0, json:Lweibo4android/org/json/JSONObject;
    invoke-direct {p0, v0}, Lweibo4android/Status;->constructJson(Lweibo4android/org/json/JSONObject;)V

    .line 83
    return-void
.end method

.method constructor <init>(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V
    .locals 2
    .parameter "res"
    .parameter "elem"
    .parameter "weibo"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    const-wide/high16 v0, -0x4010

    .line 75
    invoke-direct {p0, p1}, Lweibo4android/WeiboResponse;-><init>(Lweibo4android/http/Response;)V

    .line 57
    iput-wide v0, p0, Lweibo4android/Status;->latitude:D

    .line 58
    iput-wide v0, p0, Lweibo4android/Status;->longitude:D

    .line 290
    const/4 v0, 0x0

    iput-object v0, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 76
    invoke-direct {p0, p1, p2, p3}, Lweibo4android/Status;->init(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V

    .line 77
    return-void
.end method

.method constructor <init>(Lweibo4android/http/Response;Lweibo4android/Weibo;)V
    .locals 3
    .parameter "res"
    .parameter "weibo"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    const-wide/high16 v1, -0x4010

    .line 68
    invoke-direct {p0, p1}, Lweibo4android/WeiboResponse;-><init>(Lweibo4android/http/Response;)V

    .line 57
    iput-wide v1, p0, Lweibo4android/Status;->latitude:D

    .line 58
    iput-wide v1, p0, Lweibo4android/Status;->longitude:D

    .line 290
    const/4 v1, 0x0

    iput-object v1, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 69
    invoke-virtual {p1}, Lweibo4android/http/Response;->asDocument()Lorg/w3c/dom/Document;

    move-result-object v1

    invoke-interface {v1}, Lorg/w3c/dom/Document;->getDocumentElement()Lorg/w3c/dom/Element;

    move-result-object v0

    .line 70
    .local v0, elem:Lorg/w3c/dom/Element;
    invoke-direct {p0, p1, v0, p2}, Lweibo4android/Status;->init(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V

    .line 71
    return-void
.end method

.method public constructor <init>(Lweibo4android/org/json/JSONObject;)V
    .locals 2
    .parameter "json"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;,
            Lweibo4android/org/json/JSONException;
        }
    .end annotation

    .prologue
    const-wide/high16 v0, -0x4010

    .line 131
    invoke-direct {p0}, Lweibo4android/WeiboResponse;-><init>()V

    .line 57
    iput-wide v0, p0, Lweibo4android/Status;->latitude:D

    .line 58
    iput-wide v0, p0, Lweibo4android/Status;->longitude:D

    .line 290
    const/4 v0, 0x0

    iput-object v0, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 132
    invoke-direct {p0, p1}, Lweibo4android/Status;->constructJson(Lweibo4android/org/json/JSONObject;)V

    .line 133
    return-void
.end method

.method private constructJson(Lweibo4android/org/json/JSONObject;)V
    .locals 5
    .parameter "json"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    .line 87
    :try_start_0
    const-string v2, "id"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getLong(Ljava/lang/String;)J

    move-result-wide v2

    iput-wide v2, p0, Lweibo4android/Status;->id:J

    .line 88
    const-string v2, "text"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->text:Ljava/lang/String;

    .line 89
    const-string v2, "source"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->source:Ljava/lang/String;

    .line 90
    const-string v2, "created_at"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string v3, "EEE MMM dd HH:mm:ss z yyyy"

    invoke-static {v2, v3}, Lweibo4android/Status;->parseDate(Ljava/lang/String;Ljava/lang/String;)Ljava/util/Date;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->createdAt:Ljava/util/Date;

    .line 91
    const-string v2, "in_reply_to_status_id"

    invoke-static {v2, p1}, Lweibo4android/Status;->getLong(Ljava/lang/String;Lweibo4android/org/json/JSONObject;)J

    move-result-wide v2

    iput-wide v2, p0, Lweibo4android/Status;->inReplyToStatusId:J

    .line 92
    const-string v2, "in_reply_to_user_id"

    invoke-static {v2, p1}, Lweibo4android/Status;->getLong(Ljava/lang/String;Lweibo4android/org/json/JSONObject;)J

    move-result-wide v2

    iput-wide v2, p0, Lweibo4android/Status;->inReplyToUserId:J

    .line 93
    const-string v2, "favorited"

    invoke-static {v2, p1}, Lweibo4android/Status;->getBoolean(Ljava/lang/String;Lweibo4android/org/json/JSONObject;)Z

    move-result v2

    iput-boolean v2, p0, Lweibo4android/Status;->isFavorited:Z

    .line 94
    const-string v2, "thumbnail_pic"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->thumbnail_pic:Ljava/lang/String;

    .line 95
    const-string v2, "bmiddle_pic"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->bmiddle_pic:Ljava/lang/String;

    .line 96
    const-string v2, "original_pic"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->original_pic:Ljava/lang/String;

    .line 97
    const-string v2, "user"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 98
    new-instance v2, Lweibo4android/User;

    const-string v3, "user"

    invoke-virtual {p1, v3}, Lweibo4android/org/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lweibo4android/org/json/JSONObject;

    move-result-object v3

    invoke-direct {v2, v3}, Lweibo4android/User;-><init>(Lweibo4android/org/json/JSONObject;)V

    iput-object v2, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 99
    :cond_0
    const-string v2, "inReplyToScreenName"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->inReplyToScreenName:Ljava/lang/String;

    .line 100
    const-string v2, "retweeted_status"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 101
    new-instance v2, Lweibo4android/RetweetDetails;

    const-string v3, "retweeted_status"

    invoke-virtual {p1, v3}, Lweibo4android/org/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lweibo4android/org/json/JSONObject;

    move-result-object v3

    invoke-direct {v2, v3}, Lweibo4android/RetweetDetails;-><init>(Lweibo4android/org/json/JSONObject;)V

    iput-object v2, p0, Lweibo4android/Status;->retweetDetails:Lweibo4android/RetweetDetails;

    .line 102
    new-instance v2, Lweibo4android/Status;

    const-string v3, "retweeted_status"

    invoke-virtual {p1, v3}, Lweibo4android/org/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lweibo4android/org/json/JSONObject;

    move-result-object v3

    invoke-direct {v2, v3}, Lweibo4android/Status;-><init>(Lweibo4android/org/json/JSONObject;)V

    iput-object v2, p0, Lweibo4android/Status;->retweeted_status:Lweibo4android/Status;

    .line 104
    :cond_1
    const-string v2, "mid"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lweibo4android/Status;->mid:Ljava/lang/String;

    .line 105
    const-string v2, "geo"

    invoke-virtual {p1, v2}, Lweibo4android/org/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 106
    .local v0, geo:Ljava/lang/String;
    if-eqz v0, :cond_2

    const-string v2, ""

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    const-string v2, "null"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 107
    invoke-direct {p0, v0}, Lweibo4android/Status;->getGeoInfo(Ljava/lang/String;)V
    :try_end_0
    .catch Lweibo4android/org/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 112
    :cond_2
    return-void

    .line 109
    .end local v0           #geo:Ljava/lang/String;
    :catch_0
    move-exception v1

    .line 110
    .local v1, je:Lweibo4android/org/json/JSONException;
    new-instance v2, Lweibo4android/WeiboException;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lweibo4android/org/json/JSONException;->getMessage()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, ":"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {p1}, Lweibo4android/org/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3, v1}, Lweibo4android/WeiboException;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    throw v2
.end method

.method static constructStatuses(Lweibo4android/http/Response;)Ljava/util/List;
    .locals 8
    .parameter "res"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lweibo4android/http/Response;",
            ")",
            "Ljava/util/List",
            "<",
            "Lweibo4android/Status;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    .line 357
    :try_start_0
    invoke-virtual {p0}, Lweibo4android/http/Response;->asJSONArray()Lweibo4android/org/json/JSONArray;

    move-result-object v2

    .line 358
    .local v2, list:Lweibo4android/org/json/JSONArray;
    invoke-virtual {v2}, Lweibo4android/org/json/JSONArray;->length()I

    move-result v3

    .line 359
    .local v3, size:I
    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4, v3}, Ljava/util/ArrayList;-><init>(I)V

    .line 361
    .local v4, statuses:Ljava/util/List;,"Ljava/util/List<Lweibo4android/Status;>;"
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-lt v0, v3, :cond_0

    .line 364
    return-object v4

    .line 362
    :cond_0
    new-instance v6, Lweibo4android/Status;

    invoke-virtual {v2, v0}, Lweibo4android/org/json/JSONArray;->getJSONObject(I)Lweibo4android/org/json/JSONObject;

    move-result-object v7

    invoke-direct {v6, v7}, Lweibo4android/Status;-><init>(Lweibo4android/org/json/JSONObject;)V

    invoke-interface {v4, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lweibo4android/org/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Lweibo4android/WeiboException; {:try_start_0 .. :try_end_0} :catch_1

    .line 361
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 365
    .end local v0           #i:I
    .end local v2           #list:Lweibo4android/org/json/JSONArray;
    .end local v3           #size:I
    .end local v4           #statuses:Ljava/util/List;,"Ljava/util/List<Lweibo4android/Status;>;"
    :catch_0
    move-exception v1

    .line 366
    .local v1, jsone:Lweibo4android/org/json/JSONException;
    new-instance v6, Lweibo4android/WeiboException;

    invoke-direct {v6, v1}, Lweibo4android/WeiboException;-><init>(Ljava/lang/Exception;)V

    throw v6

    .line 367
    .end local v1           #jsone:Lweibo4android/org/json/JSONException;
    :catch_1
    move-exception v5

    .line 368
    .local v5, te:Lweibo4android/WeiboException;
    throw v5
.end method

.method static constructStatuses(Lweibo4android/http/Response;Lweibo4android/Weibo;)Ljava/util/List;
    .locals 10
    .parameter "res"
    .parameter "weibo"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lweibo4android/http/Response;",
            "Lweibo4android/Weibo;",
            ")",
            "Ljava/util/List",
            "<",
            "Lweibo4android/Status;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    const/4 v9, 0x0

    .line 330
    invoke-virtual {p0}, Lweibo4android/http/Response;->asDocument()Lorg/w3c/dom/Document;

    move-result-object v0

    .line 331
    .local v0, doc:Lorg/w3c/dom/Document;
    invoke-static {v0}, Lweibo4android/Status;->isRootNodeNilClasses(Lorg/w3c/dom/Document;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 332
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5, v9}, Ljava/util/ArrayList;-><init>(I)V

    .line 347
    :cond_0
    :goto_0
    return-object v5

    .line 335
    :cond_1
    :try_start_0
    const-string v7, "statuses"

    invoke-static {v7, v0}, Lweibo4android/Status;->ensureRootNodeNameIs(Ljava/lang/String;Lorg/w3c/dom/Document;)V

    .line 336
    invoke-interface {v0}, Lorg/w3c/dom/Document;->getDocumentElement()Lorg/w3c/dom/Element;

    move-result-object v7

    .line 337
    const-string v8, "status"

    .line 336
    invoke-interface {v7, v8}, Lorg/w3c/dom/Element;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;

    move-result-object v2

    .line 338
    .local v2, list:Lorg/w3c/dom/NodeList;
    invoke-interface {v2}, Lorg/w3c/dom/NodeList;->getLength()I

    move-result v3

    .line 339
    .local v3, size:I
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5, v3}, Ljava/util/ArrayList;-><init>(I)V

    .line 340
    .local v5, statuses:Ljava/util/List;,"Ljava/util/List<Lweibo4android/Status;>;"
    const/4 v1, 0x0

    .local v1, i:I
    :goto_1
    if-ge v1, v3, :cond_0

    .line 341
    invoke-interface {v2, v1}, Lorg/w3c/dom/NodeList;->item(I)Lorg/w3c/dom/Node;

    move-result-object v4

    check-cast v4, Lorg/w3c/dom/Element;

    .line 342
    .local v4, status:Lorg/w3c/dom/Element;
    new-instance v7, Lweibo4android/Status;

    invoke-direct {v7, p0, v4, p1}, Lweibo4android/Status;-><init>(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V

    invoke-interface {v5, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lweibo4android/WeiboException; {:try_start_0 .. :try_end_0} :catch_0

    .line 340
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 345
    .end local v1           #i:I
    .end local v2           #list:Lorg/w3c/dom/NodeList;
    .end local v3           #size:I
    .end local v4           #status:Lorg/w3c/dom/Element;
    .end local v5           #statuses:Ljava/util/List;,"Ljava/util/List<Lweibo4android/Status;>;"
    :catch_0
    move-exception v6

    .line 346
    .local v6, te:Lweibo4android/WeiboException;
    const-string v7, "nil-classes"

    invoke-static {v7, v0}, Lweibo4android/Status;->ensureRootNodeNameIs(Ljava/lang/String;Lorg/w3c/dom/Document;)V

    .line 347
    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5, v9}, Ljava/util/ArrayList;-><init>(I)V

    goto :goto_0
.end method

.method private getGeoInfo(Ljava/lang/String;)V
    .locals 8
    .parameter "geo"

    .prologue
    const/4 v3, 0x0

    .line 115
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    .line 116
    .local v1, value:Ljava/lang/StringBuffer;
    invoke-virtual {p1}, Ljava/lang/String;->toCharArray()[C

    move-result-object v4

    array-length v5, v4

    move v2, v3

    :goto_0
    if-lt v2, v5, :cond_0

    .line 127
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v2

    iput-wide v2, p0, Lweibo4android/Status;->longitude:D

    .line 128
    return-void

    .line 116
    :cond_0
    aget-char v0, v4, v2

    .line 117
    .local v0, c:C
    const/16 v6, 0x2d

    if-le v0, v6, :cond_1

    const/16 v6, 0x3a

    if-ge v0, v6, :cond_1

    .line 118
    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 120
    :cond_1
    const/16 v6, 0x2c

    if-ne v0, v6, :cond_2

    .line 121
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->length()I

    move-result v6

    if-lez v6, :cond_2

    .line 122
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v6

    iput-wide v6, p0, Lweibo4android/Status;->latitude:D

    .line 123
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->length()I

    move-result v6

    invoke-virtual {v1, v3, v6}, Ljava/lang/StringBuffer;->delete(II)Ljava/lang/StringBuffer;

    .line 116
    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0
.end method

.method private init(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V
    .locals 7
    .parameter "res"
    .parameter "elem"
    .parameter "weibo"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lweibo4android/WeiboException;
        }
    .end annotation

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    .line 143
    const-string v3, "status"

    invoke-static {v3, p2}, Lweibo4android/Status;->ensureRootNodeNameIs(Ljava/lang/String;Lorg/w3c/dom/Element;)V

    .line 144
    new-instance v4, Lweibo4android/User;

    const-string v3, "user"

    invoke-interface {p2, v3}, Lorg/w3c/dom/Element;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;

    move-result-object v3

    invoke-interface {v3, v5}, Lorg/w3c/dom/NodeList;->item(I)Lorg/w3c/dom/Node;

    move-result-object v3

    check-cast v3, Lorg/w3c/dom/Element;

    .line 145
    invoke-direct {v4, p1, v3, p3}, Lweibo4android/User;-><init>(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V

    .line 144
    iput-object v4, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    .line 146
    const-string v3, "id"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildLong(Ljava/lang/String;Lorg/w3c/dom/Element;)J

    move-result-wide v3

    iput-wide v3, p0, Lweibo4android/Status;->id:J

    .line 147
    const-string v3, "text"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildText(Ljava/lang/String;Lorg/w3c/dom/Element;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lweibo4android/Status;->text:Ljava/lang/String;

    .line 148
    const-string v3, "source"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildText(Ljava/lang/String;Lorg/w3c/dom/Element;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lweibo4android/Status;->source:Ljava/lang/String;

    .line 149
    const-string v3, "created_at"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildDate(Ljava/lang/String;Lorg/w3c/dom/Element;)Ljava/util/Date;

    move-result-object v3

    iput-object v3, p0, Lweibo4android/Status;->createdAt:Ljava/util/Date;

    .line 150
    const-string v3, "truncated"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildBoolean(Ljava/lang/String;Lorg/w3c/dom/Element;)Z

    move-result v3

    iput-boolean v3, p0, Lweibo4android/Status;->isTruncated:Z

    .line 151
    const-string v3, "in_reply_to_status_id"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildLong(Ljava/lang/String;Lorg/w3c/dom/Element;)J

    move-result-wide v3

    iput-wide v3, p0, Lweibo4android/Status;->inReplyToStatusId:J

    .line 152
    const-string v3, "in_reply_to_user_id"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildLong(Ljava/lang/String;Lorg/w3c/dom/Element;)J

    move-result-wide v3

    iput-wide v3, p0, Lweibo4android/Status;->inReplyToUserId:J

    .line 153
    const-string v3, "favorited"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildBoolean(Ljava/lang/String;Lorg/w3c/dom/Element;)Z

    move-result v3

    iput-boolean v3, p0, Lweibo4android/Status;->isFavorited:Z

    .line 154
    const-string v3, "in_reply_to_screen_name"

    invoke-static {v3, p2}, Lweibo4android/Status;->getChildText(Ljava/lang/String;Lorg/w3c/dom/Element;)Ljava/lang/String;

    move-result-object v3

    iput-object v3, p0, Lweibo4android/Status;->inReplyToScreenName:Ljava/lang/String;

    .line 155
    const-string v3, "georss:point"

    invoke-interface {p2, v3}, Lorg/w3c/dom/Element;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;

    move-result-object v0

    .line 156
    .local v0, georssPoint:Lorg/w3c/dom/NodeList;
    invoke-interface {v0}, Lorg/w3c/dom/NodeList;->getLength()I

    move-result v3

    if-ne v6, v3, :cond_1

    .line 157
    invoke-interface {v0, v5}, Lorg/w3c/dom/NodeList;->item(I)Lorg/w3c/dom/Node;

    move-result-object v3

    invoke-interface {v3}, Lorg/w3c/dom/Node;->getFirstChild()Lorg/w3c/dom/Node;

    move-result-object v3

    invoke-interface {v3}, Lorg/w3c/dom/Node;->getNodeValue()Ljava/lang/String;

    move-result-object v3

    const-string v4, " "

    invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    .line 158
    .local v1, point:[Ljava/lang/String;
    const-string v3, "null"

    aget-object v4, v1, v5

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 159
    aget-object v3, v1, v5

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v3

    iput-wide v3, p0, Lweibo4android/Status;->latitude:D

    .line 160
    :cond_0
    const-string v3, "null"

    aget-object v4, v1, v6

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_1

    .line 161
    aget-object v3, v1, v6

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v3

    iput-wide v3, p0, Lweibo4android/Status;->longitude:D

    .line 163
    .end local v1           #point:[Ljava/lang/String;
    :cond_1
    const-string v3, "retweet_details"

    invoke-interface {p2, v3}, Lorg/w3c/dom/Element;->getElementsByTagName(Ljava/lang/String;)Lorg/w3c/dom/NodeList;

    move-result-object v2

    .line 164
    .local v2, retweetDetailsNode:Lorg/w3c/dom/NodeList;
    invoke-interface {v2}, Lorg/w3c/dom/NodeList;->getLength()I

    move-result v3

    if-ne v6, v3, :cond_2

    .line 165
    new-instance v4, Lweibo4android/RetweetDetails;

    invoke-interface {v2, v5}, Lorg/w3c/dom/NodeList;->item(I)Lorg/w3c/dom/Node;

    move-result-object v3

    check-cast v3, Lorg/w3c/dom/Element;

    invoke-direct {v4, p1, v3, p3}, Lweibo4android/RetweetDetails;-><init>(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V

    iput-object v4, p0, Lweibo4android/Status;->retweetDetails:Lweibo4android/RetweetDetails;

    .line 166
    new-instance v4, Lweibo4android/Status;

    invoke-interface {v2, v5}, Lorg/w3c/dom/NodeList;->item(I)Lorg/w3c/dom/Node;

    move-result-object v3

    check-cast v3, Lorg/w3c/dom/Element;

    invoke-direct {v4, p1, v3, p3}, Lweibo4android/Status;-><init>(Lweibo4android/http/Response;Lorg/w3c/dom/Element;Lweibo4android/Weibo;)V

    iput-object v4, p0, Lweibo4android/Status;->retweeted_status:Lweibo4android/Status;

    .line 168
    :cond_2
    return-void
.end method


# virtual methods
.method public equals(Ljava/lang/Object;)Z
    .locals 6
    .parameter "obj"

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 381
    if-nez p1, :cond_1

    .line 387
    .end local p1
    :cond_0
    :goto_0
    return v0

    .line 384
    .restart local p1
    :cond_1
    if-ne p0, p1, :cond_2

    move v0, v1

    .line 385
    goto :goto_0

    .line 387
    :cond_2
    instance-of v2, p1, Lweibo4android/Status;

    if-eqz v2, :cond_0

    check-cast p1, Lweibo4android/Status;

    .end local p1
    iget-wide v2, p1, Lweibo4android/Status;->id:J

    iget-wide v4, p0, Lweibo4android/Status;->id:J

    cmp-long v2, v2, v4

    if-nez v2, :cond_0

    move v0, v1

    goto :goto_0
.end method

.method public getBmiddle_pic()Ljava/lang/String;
    .locals 1

    .prologue
    .line 283
    iget-object v0, p0, Lweibo4android/Status;->bmiddle_pic:Ljava/lang/String;

    return-object v0
.end method

.method public getCreatedAt()Ljava/util/Date;
    .locals 1

    .prologue
    .line 178
    iget-object v0, p0, Lweibo4android/Status;->createdAt:Ljava/util/Date;

    return-object v0
.end method

.method public getId()J
    .locals 2

    .prologue
    .line 187
    iget-wide v0, p0, Lweibo4android/Status;->id:J

    return-wide v0
.end method

.method public getInReplyToScreenName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 247
    iget-object v0, p0, Lweibo4android/Status;->inReplyToScreenName:Ljava/lang/String;

    return-object v0
.end method

.method public getInReplyToStatusId()J
    .locals 2

    .prologue
    .line 227
    iget-wide v0, p0, Lweibo4android/Status;->inReplyToStatusId:J

    return-wide v0
.end method

.method public getInReplyToUserId()J
    .locals 2

    .prologue
    .line 237
    iget-wide v0, p0, Lweibo4android/Status;->inReplyToUserId:J

    return-wide v0
.end method

.method public getLatitude()D
    .locals 2

    .prologue
    .line 256
    iget-wide v0, p0, Lweibo4android/Status;->latitude:D

    return-wide v0
.end method

.method public getLongitude()D
    .locals 2

    .prologue
    .line 265
    iget-wide v0, p0, Lweibo4android/Status;->longitude:D

    return-wide v0
.end method

.method public getMid()Ljava/lang/String;
    .locals 1

    .prologue
    .line 323
    iget-object v0, p0, Lweibo4android/Status;->mid:Ljava/lang/String;

    return-object v0
.end method

.method public getOriginal_pic()Ljava/lang/String;
    .locals 1

    .prologue
    .line 287
    iget-object v0, p0, Lweibo4android/Status;->original_pic:Ljava/lang/String;

    return-object v0
.end method

.method public getRetweetDetails()Lweibo4android/RetweetDetails;
    .locals 1

    .prologue
    .line 314
    iget-object v0, p0, Lweibo4android/Status;->retweetDetails:Lweibo4android/RetweetDetails;

    return-object v0
.end method

.method public getRetweeted_status()Lweibo4android/Status;
    .locals 1

    .prologue
    .line 319
    iget-object v0, p0, Lweibo4android/Status;->retweeted_status:Lweibo4android/Status;

    return-object v0
.end method

.method public getSource()Ljava/lang/String;
    .locals 1

    .prologue
    .line 206
    iget-object v0, p0, Lweibo4android/Status;->source:Ljava/lang/String;

    return-object v0
.end method

.method public getText()Ljava/lang/String;
    .locals 1

    .prologue
    .line 196
    iget-object v0, p0, Lweibo4android/Status;->text:Ljava/lang/String;

    return-object v0
.end method

.method public getThumbnail_pic()Ljava/lang/String;
    .locals 1

    .prologue
    .line 279
    iget-object v0, p0, Lweibo4android/Status;->thumbnail_pic:Ljava/lang/String;

    return-object v0
.end method

.method public getUser()Lweibo4android/User;
    .locals 1

    .prologue
    .line 298
    iget-object v0, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    return-object v0
.end method

.method public hashCode()I
    .locals 2

    .prologue
    .line 376
    iget-wide v0, p0, Lweibo4android/Status;->id:J

    long-to-int v0, v0

    return v0
.end method

.method public isFavorited()Z
    .locals 1

    .prologue
    .line 275
    iget-boolean v0, p0, Lweibo4android/Status;->isFavorited:Z

    return v0
.end method

.method public isRetweet()Z
    .locals 1

    .prologue
    .line 306
    iget-object v0, p0, Lweibo4android/Status;->retweetDetails:Lweibo4android/RetweetDetails;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isTruncated()Z
    .locals 1

    .prologue
    .line 217
    iget-boolean v0, p0, Lweibo4android/Status;->isTruncated:Z

    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    .prologue
    .line 392
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Status [createdAt="

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lweibo4android/Status;->createdAt:Ljava/util/Date;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", id="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lweibo4android/Status;->id:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", text="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 393
    iget-object v1, p0, Lweibo4android/Status;->text:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", source="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->source:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", isTruncated="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-boolean v1, p0, Lweibo4android/Status;->isTruncated:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 394
    const-string v1, ", inReplyToStatusId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lweibo4android/Status;->inReplyToStatusId:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 395
    const-string v1, ", inReplyToUserId="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lweibo4android/Status;->inReplyToUserId:J

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", isFavorited="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 396
    iget-boolean v1, p0, Lweibo4android/Status;->isFavorited:Z

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", inReplyToScreenName="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->inReplyToScreenName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 397
    const-string v1, ", latitude="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lweibo4android/Status;->latitude:D

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", longitude="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-wide v1, p0, Lweibo4android/Status;->longitude:D

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 398
    const-string v1, ", thumbnail_pic="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->thumbnail_pic:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", bmiddle_pic="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 399
    iget-object v1, p0, Lweibo4android/Status;->bmiddle_pic:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", original_pic="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->original_pic:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 400
    const-string v1, ", retweetDetails="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->retweetDetails:Lweibo4android/RetweetDetails;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ",  mid="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->mid:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", user="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lweibo4android/Status;->user:Lweibo4android/User;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 401
    const-string v1, "retweeted_status="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v0, p0, Lweibo4android/Status;->retweeted_status:Lweibo4android/Status;

    if-nez v0, :cond_0

    const-string v0, "null"

    :goto_0
    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 402
    const-string v1, "]"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 392
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    .line 401
    :cond_0
    iget-object v0, p0, Lweibo4android/Status;->retweeted_status:Lweibo4android/Status;

    invoke-virtual {v0}, Lweibo4android/Status;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method
